<%@page import="com.liferay.portal.theme.ThemeDisplay"%>
<%@include file="/html/library/init.jsp"%>
<liferay-ui:journal-article articleId="MY_CONTENT" 
	groupId="<%= themeDisplay.getScopeGroupId() %>"/>
<%
//ThemeDisplay td = (ThemeDisplay)request.getAttribute("THEME_DISPLAY");	
//PortletURL showListURL = renderResponse.createRenderURL();
//showListURL.setParameter("jspPage", MyLibraryConstants.SHOW_LIST);
%>
<%--<liferay-ui:journal-article articleId="TEST_LIBRARY" groupId="<%=td.getScopeGroupId()%>"/> --%>

<portlet:actionURL var="searchBookUrl" name="<%=MyLibraryConstants.ACTIONS_SEARCH_BOOKS%>">
</portlet:actionURL> 


<portlet:renderURL var="updateBookUrl">
	<portlet:param name="jspPage" value="<%=MyLibraryConstants.PAGE_UPDATE%>" />
</portlet:renderURL>

<portlet:renderURL var="showListUrl">
	<portlet:param name="jspPage" value="<%=MyLibraryConstants.SHOW_LIST%>" />
</portlet:renderURL>

<br />
<a href="<%=updateBookUrl%>">Add a new Book &raquo;</a>

&nbsp;|&nbsp;
<a href="<%=showListUrl%>">View Book &raquo;</a>
<br/>
<aui:form action="<%=searchBookUrl.toString()%>">
<aui:input name="searchTerm" label="Enter the title to search"/>
<aui:button type="Submit" value="Search"/>
</aui:form>